import java.util.EnumSet;

public enum IdType{
    None(0),

    ;

    public final int value;
    public int getValue() { return value; }
    IdType(int v){
        value = v;
    }
    protected static final EnumSet<IdType> ALL_VALUES = EnumSet.allOf(IdType.class);
    public static IdType fromNum(int v){
        for (IdType vv: ALL_VALUES                    ) {
            if(vv.value == v) return vv;
        }
        return null;
    }
}